package com.care.service.impl;

import com.care.dao.mapper.UserMapper;
import com.care.dao.model.User;
import com.care.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public boolean checkAvaiPublis(Integer userId) {
        User user = userMapper.selectByPrimaryKey(userId);
        if(user.getStatus()==1){
            return true;
        }else{
            return false;
        }
    }
}
